{include file='yxworker/w_head2'}
        <header class="order_header" style="font-size: 0.4rem;">
            <div class="go_back">
                <a style="color: #ffffff" href="/{php echo createMobileUrl('w_index',array('themeid'=>$themeid));}">
                <img src="{$_G['URL']['WORKER_CSS']}images/order_03.png">
                返回首页</a>
            </div>
            线下定单录入
        </header>
        <style type="text/css">
            input{
                width: 96%;
                height: 0.55rem;
                font-size: 0.3rem;
                border: 1px solid #19b5ee;
                border-radius: 5px;
                margin-top: 0.05rem;
                padding: 0.05rem 0.1rem;
            }
            select{
                width: 100%;
                height: 0.68rem;
                font-size: 0.3rem;
                border: 1px solid #19b5ee;
                border-radius: 5px;
                margin-top: 0.05rem;
                padding: 0.05rem 0.1rem;
            }
        </style>


        <div class="s_items s_bg">
            <div class="s_title">
                <img src="{$_G['URL']['WORKER_CSS']}images/title_17.png">
                线下定单录入
            </div>
        </div>
        {if $op == 'display'}
        <form action='{php echo "/".createMobileUrl('w_input',array("op"=>"save","themeid"=>$themeid));}' method="post">  
            <div class="lmsz_cont">



            <div class="lmsz_cont">
                <div class="form-group" id="username">
                    <p>{$config['nametext']}</p>
                        <input type="text" name="username" id="username" value="{$item['username']}" class="form-control">
                </div>
                <div class="form-group">
                    <p>{$config['mobiletext']}</p>
                        <input type="text" name="mobile" value="{$item['mobile']}" class="form-control">
                </div>

            {if $config['shopstype'] == 0 }
                {if !empty($config['shops'])}
            <div class="form-group">
                    <p>{$config['shops']}</label>
                <div class="col-sm-9 col-xs-12">
                    {if !empty($config['options'])}
                    <select id="shoptitle" name="shoptitle" > 
                    <option value="">请选择{$config['shops']}</option>
                    {loop $config['options'] $row}
                        <option value="{$row}" {if $row==$record['option']}selected="selected"{/if}>{$row}</option>
                    {/loop}
                    </select>
                    {/if}
                    </div>
            </div>
                {else}
                    <input  type="hidden" name="shoptitle" value="默认" id="shoptitle">
                {/if}
            {/if}



            <div {if empty($config['address'])}style="display: none;"{/if} class="form-group">
                <p>{$config['address']}</label>
                    <input class="form-control" placeholder="{$config['address']}必填" type="text" name="address_ordernew" value="{$record['address']}" id="address_ordernew">
            </div>

            {if $config['shopstype'] > 0 }
                <div {if empty($config['shops'])}style="display: none;"{/if} class="form-group">
                    <p>{$config['shops']}</p>
                        <input class="form-control" placeholder="{$config['shops']}必填" type="{php echo $config['shopstype']==2?'tel':'text';}" name="shoptitle" value="{$record['option']}" id="shoptitle">
            </div>
            {/if}
            {if $config['datetimetype'] > 0 }
                <div {if empty($config['datetime'])}style="display: none;"{/if} class="form-group">
                    <p>{$config['datetime']}</p>
                        <input class="form-control" placeholder="{$config['datetime']}必填" type="{php echo $config['datetimetype']==2?'tel':'text';}" name="date_ordernew" value="{$record['datetime']}" id="date_ordernew">
                </div>
            {else}
                <div {if empty($config['datetime'])}style="display: none;"{/if} class="form-group">
                    <p >{$config['datetime']}</p>
                                        <input class="form-control" placeholder="{$config['datetime']}" type="text" onfocus="(this.type='date')" value="{$record['datetime']}" name="date_ordernew" id="date_ordernew"/>
                </div>
            {/if}
            
                {if count($feelist)>1}
            <div class="form-group">
                    <p>线下收款金额</label>
                <div class="col-sm-9 col-xs-12">
                    <select id="realfee" name="realfee" > 
                    {loop $feelist $row}
                        <option value="{$row['name']}|{$row['fee']}" >{$row['name']} - {$row['fee']}</option>
                    {/loop}
                    </select>
                    </div>
            </div>
                {else}
                    <input  type="hidden" name="realfee" value="{$feelist[0]['fee']}" id="realfee">
                {/if}

                <div style="text-align: center;">
                    <button class="l_btn" type="submit"  >提交</button>
                </div>

            </div>
        </form>
        <div class="item12" style="padding: 0.5rem 0; border-bottom: 1px solid #dedddd;">
            <p>1.当客户无法线上付款时，我们可使用线下录入，让客户依旧线上组团，并且方便我们做线上的数字统计</p>
            <p>2.流程：录入客户姓名电话，让客户扫描出现的二维码即完成</p>
            <p>3.如何修改？线下定单临时不可修改，如遇录错录重请在电脑版管理后台，订单管理中进行删除，然后重新线下录入</p>
            <p>4.钱去哪了？线下录入并未收款，款项一般由员工线下收取，员工进行正常的财务交帐，款项无法录到系统内</p>
        </div>
        {else}
            <div class="item" style="text-align: center;">
                <img style="padding:20px; width:50%;" src="{$_G['URL']['QRURLNEW']}{php echo urlencode($inputurl);}">
            </div>
        <div class="lmsz_cont">

            <div class="item">
                <p>姓名</p>
                <input type="text" placeholder="" name="username" value="{$record['username']}" />
            </div>
            <div class="item">
                <p>电话</p>
                <input type="number" placeholder="" name="mobile" value="{$record['mobile']}"/>
            </div>
            <div class="l_btn" href="#">截屏邀约客户扫码进行绑定</div>
        </div>
        {/if}
{include file='yxworker/w_foot'}
